const express = require("express")
const router = express.Router()
const tools = require("../model/tools")


// 导入产品路由处理函数对应的模块
const product_handler = require('../router_handler/product')

// 展示上传图片接口
router.get("/", product_handler.getUploadPage)
// 获取产品图片
router.get("/getPic", product_handler.getPic)

// 上传产品图片
router.post("/addProductPic", tools.multer().single("pic"), product_handler.addProductPic)


module.exports = router